<template>
  <div>
    <li style='padding: 10px 0;'>
      <div class='story-small' @click='this.gotoDetail'>
        <div>
          <a target='_blank' class='relate-image'>
          </a>
          <h4 class='story-title'>
            <a  style='color: #666;text-decoration: none;'>{{this.meta.title}}</a>
          </h4>
        </div>
      </div>
    </li>
  </div>
</template>

<script>
export default {
  name: 'RelatedArticleItem',
  props:{
    meta:{}
  },
  method:{
    gotoDetail(){
      this.$router.push(`article/${this.meta.id}`)
    }
  }
}
</script>

<style scoped>

.story-small{
  min-height: 72px;
  padding-left: 28px;
  position: relative;
  word-break: break-all;
}
.relate-image{
  background-image: url(https://file-1252776546.cos.ap-hongkong.myqcloud.com/279a53b8b328fb9bbb896408629fa159.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  left: 0;
  padding-top: 72px;
  position: absolute;
  top: 0;
  width: 72px;
  color: #666;
  text-decoration: none;
}
.story-title{
  font-size: 14px!important;
  font-weight: 700;
  line-height: 18px!important;
}
</style>
